Skip to content

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Oct 5, 2025

Extract sockets changes from #20066

@Girgias Girgias force-pushed the sockets-wrong-count branch from d466fba to cbbd9b0 Compare October 12, 2025 22:44
@Girgias Girgias force-pushed the sockets-wrong-count branch from cbbd9b0 to 9cd7fcf Compare October 12, 2025 22:46
@Girgias Girgias marked this pull request as ready for review October 12, 2025 22:46
@Girgias Girgias requested review from TimWolla and devnexen October 12, 2025 22:46
if (arg6 == NULL) {
zend_string_efree(recv_buf);
WRONG_PARAM_COUNT;
zend_throw_exception(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a bad idea. zend_argument_count_error could have been used too but you avoid 1 allocation at least.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, but the thing I found confusing about that API is that it doesn't automatically prefix the function name.

Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Girgias Girgias merged commit fd1c366 into php:master Oct 13, 2025
10 checks passed
@Girgias Girgias deleted the sockets-wrong-count branch October 13, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants